import os
import shutil
from common.logger_util import LogUtils

def remove_file(file_path):

    try:
        if os.path.isfile(file_path):
            os.remove(file_path)
        elif os.path.isdir(file_path):
            shutil.rmtree(file_path)
    except FileNotFoundError as e:
        LogUtils.error(f"文件或文件夹不存在：{e}")

remove_file("../../outFiles/report")
